Fix OSX build, link to Cocoa framework

I've been getting linking errors when trying to build on osx. This fixes it.