Solved issue with cxx flags on mac which was introduced in the last commit