Fixed build for Xcode 4