fix mesa configure script to support dri2 without libudev