Fixed build system on OSX
Converted .hgignore to .gitignore.