Makefile.am relinks tests on sub-library change