darwin: fixed build on 10.7.x with Xcode 4.6