Fix compatibility of Xcode 4.x