Fix compile on osx