Use pkg-config to find libXCBxtest in the Makefile for the xtest test application.