fixed xcode project and some small 10.8 issues