Introduce build script and hooking mechanism to coordinate installation of dependencies.