Fixed compat issue with automake >= 1.12