Fix building when specified --buildroot switch.