Fix compilation errors on Xcode 5