Add build support for OSX 10.9, make Perforce compiling optional