CMake: detect IPv6 support