Two small fixes

Hi,

after your blog post I thought I'd try again to send some more fixes your way that got lost somewhere on the way the last time :)

The first adds a basic .gitignore file (which is, right now, tailored to MSVC generated files but you might want to add some typical Linux-generated files there as well)

The second adds the "better" snprintf version which is (reportedly ;-) 100% C99 compliant as a workaround for the (broken?) MSVC one