Added Xcode ten script, added #ifdef for OSX and Windows.