fix build error with automake 1.11 and should work with automake 1.12
too