Filter out newlines from error messages on Windows
Change FormatMessage() usage in DLLManager::RetrieveLastError() to match SocketEngine::LastError()

See 4451fd13a1accec8d7c2b1bb7fdafd6e50a2566b