Fixed compile errors in Xcode 6 GM