fix opt flag issues for macosX

Merged Elisa Rebolini requested to merge feature-python_api-build_wheels into master

Merge request reports