mesa: fix libGL searching for libudev

Close #2784, #2731.

I don't have a clue if using our libudev is always correct on non-nixos,
or if using /run/current-system/sw/lib/libudev would be better...

(cherry picked from commit 24951785f7cbe26a0066588bc9336749fe3606a0)