modernized for automake 1.13+