Remove non-c99 snprintf() usages.

I also updated HACKING.md to clarify the situation. 

Please refer to confluence page "Writing Cross-Platform Code" before introducing more PRIdMAX etc ugliness. I believe the situation is pretty clear right now, I've spent a lot of time trying to get printf-related crashes on old platforms, please contact me if you get any.