Fix building the modules under osx.