Improve support for distcc builds