udev: don't mix static and dynamic libs