I updated the patch to have a more secure semaphore behavior along the line described
here:
http://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html