Compiling the viewer (Mac OS X XCode)