On my system OpenGL with bumblebee seems to require libudev in LD_LIBRARY_PATH. Fix that, fix bumblebee module loading and make the socket group configurable

(cherry picked from commit eef9a8ac2a30b495ff7184382ed0dbd73b3b88e4)