Broke build environment stuff into two parts.