Workaround missing <inttypes.h> on MSVC 2010
merge PR of @yegord