port to latest version of ext-lib.