Add support for building a package on-the-fly.