fixes compiler warnings for ios7/xcode 5