Add build support for Mac OS X

Works with framework from http://www.kyngchaos.com/software:frameworks
Merge pull request #1 from finetjul/add-mac-build-support

Add build support for Mac OS X