various fixes for compiling on os x

* Removed redundant insert def
* Fixed invalid obj-c class declaration
* Added missing namespace reference causing a compilation error
* Added a convenience script for mac deployment build
* Fixed framework paths discovery in macdeploy script
* Updated gitignore
* Updated mac binary to a functioning one packaged in a mac disk image
* Added some mac specific compiler flags to qmake file to resolve
compilation errors in mavericks
* Disabled i386 target in release (all intel macs with core2 or newer
should be able to run 64 bit code)