configure: simplify dependencies for x11_grab_device