autoconf build fix to satisfy --as-needed linking on Ubuntu for Travis CI