fix XCode 4.6 warnings