cmake: Fix detection of a fully seperate libresolv