testsuite: build libtap as a check_LTLIBRARY