custom_build: add BUILD_KIND env var

This is just to support some nice environment aliases in gcc-rs at the moment.