Adding compiler flags to make GCC work on OSX