Add build support for Mac OS X

Works with framework from http://www.kyngchaos.com/software:frameworks