fixed optimization flag for osx