Fix issue with automake 1.12

See http://lists.gnu.org/archive/html/automake/2012-05/msg00014.html