Fixed flags to compile on latest MacOSX