CMake adjusted for OS X and homebrew

Added ".DS_Store" to gitignore and first attempt to fix issue #4. Tested on OS X 10.8.3 and latest homebrew.