import the package, name can differ from modulename if srcdir is supplied
add get_extension function to built module