Fixed Xcode 5.1 build errors