fix Compile error when Deployment Target >= 6.0