support initPackageDB and invokeHcPkg for the GHCJS compiler flavour, required for sandbox