Extract compatibility library, add importlib.