Fixed OSX compiling options.