use PatchPerl as a library