cmake: Do not remove libresolv from required libraries.