Add pkg-config checks for X11, freetype, and gl