added .gitignore
added OSX compile support