Fix compiler switches for macosx only