Fix mac osx deployment_target.
Fix warnings