autotools: link against test-compositor libraries

Tests using test-compositor need to be linked against it
tests: add wl_shm test

The test uses test-compositor