Fix compilation of OSX demo project