fixed XCODE 5 compile error (Mac OSX 10.8+)