Fix osx build