Minor fixup in the build system

- If the GLX example harness is used then pthread is linked to it.