Added fixes for OS X 10.10 SDK + XCode Compiling