Fix lima tests' linking with libX11, libGL and libm.