Fix build with recent autotools