build: Improve build scripts.