Fix osx compilation.