change to xcode4 compatibility