server/Mac: fixes to build without xcode

Some fixed to build without xcode. When running cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.8  should be set