fixed warnings for new Xcode