various patches, and pkginfo now generated by userland buildsystem