fix the build warnings (Xcode 6)