Add macalg_fail to alg-util.[ch]. Preparatory for upcoming changes.