Fix compatibility with automake v 1.12