m4: apply a patch before building