Fixed Build Errors on XCode 4.6.2