Fix pointer oversight & add better int->str conv.

These problems were found when attempting to build the client in Windows
XP.
Change main func in MapMaker to SDL standard.

This issue found when attempting to compile on Windows XP.