Fixed some windows build warnings
define used format macros if inttypes.h not present
Merge pull request #520 from LocutusOfBorg/fix-windows-warnings

Fixed some windows build warnings