fix xcode 6.1 errors