Added extra flags for OSX