Fixes for NTLM authentication.