fixed crash on windows when SASL enabled