OSX install script

Add install script for OSX.
It depends on OS X home brew preconditionally.

Fix subtle configuration at .gitignore for after build.