Optimise build system.