osx build: a few things coming together to make the build stop.
Main outstanding issue is that linking with the undefined = error setup
causes a stop at RunApplicationEventLoop() not being found.
Merge pull request #1161 from monkeyiq/2014feb/osxbuild

osx build: a few things coming together to make the build stop.