modified from setup.py version "1.37" to support BeOS build. Contributed by Donn Cave (SF patch 411830).