fix compiler options for macOS

6 jobs for macos in 4 minutes and 48 seconds (queued for 2 minutes and 54 seconds)