get compilation smooth on osx