Fixes compile error with MSC.

Unfortunately MSC does not support C99 where snprintf was added to the
standard. As a workaround alias _snprint to snprintf.
Adds Visual Studio 2010 project files.
Adds .gitignore.
Merge pull request #31 from rioki/master

Visual Studio 2010 Project Files