fixed warnings in Xcode 6