build: improved build scripts.