build: add support to use the mold linker for packages