Add "generic" build_release function.