support "%x"
Merge pull request #2 from imasahiro/fix-x-format

Fix compile error on "%x."