Change compiler flags to work on OSX