Fix build with automake-1.12.