Remove linking with libGL. Fix building GLESv1 tests.