Fixing build in Xcode 6

Fixes build errors in Xcode 6.