Add a dedicated build directory for the optimizer