Fix flags for MacOS X