Merge pull request #378 from yegord/next

Fix building by MSVC 2010 lacking inttypes.h