Fixed Xcode 5.1.1 compilation errors