Changed Makefiles for OS X compatibility
Fixed makefiles to use gcc for OS X, updated gitignore for .dSYM.