Refactor and pimp the build system even more.