test/Makefile.am: Fix issue with --disable-static.