Also adds some backwards compatibility when compiling _bsddb.c on earlier python versions (needed for pybsddb).