heimdal: Move autoproto code to heimdal_build.