Fixes compile issue with snprintf on windows
Replaces snprintf with std library equiv.
Merge pull request #171 from wickedest/master

Fixes compile issue with snprintf on windows