[packaging] Fix building with autogen.sh.