fixed warnings in XCode 4.6