cmake: Fix find_library for ubusd and examples/server