Fixes CMake issues with udev (#734)