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.