CMakeLists.txt: fix Windows LDAP/LDAPS option handling