Replaced fprintfs by proper debug macros and fixed some compilation warnings.

3 files changed