Port build/configure.jam.
Also allow to expose Python class to Jam, which fixes tag.py and inline.py testcases.