Fixed compile warnings after upgrading to Xcode 4.6