Fix CMake checks of PCap functions, along with AirPCap