Make libudev optional.