Add the --build-mode switch to control how the compiler and linker are invoked.