Fix OS X crashes.
remove the unsafe and unportable snprintf and a few other minors
small additions to .gitignore
Merge pull request #3 from rgngl/osxfix

OS X fixes
Added -f flag in clean