fix compile options for osx