packagebuild: don't write artifacts immediately
packagebuild: collect programs and libraries separately
packagebuild: generate list of debug symbol files
packagebuild: minor code style fix
buildtool: implement packaging of debug information