Fixes in package build scripts.