added osx-specific generator_osx.cc