Fix warnings in XCode 4.6