build: Fixes in build and installation process.