build: Move libcheck under TEST conditional
3 files changed