Merge pull request #2140 from waddlesplash/patch-1 Make sure we unset the CMAKE_REQUIRED_LIBRARIES variable.