Fix thread handle leak in threadengine_win32
Remove unused variables, avoid copies where possible, check empty() instead of size() == 0
Most of these were detected by cppcheck
Workaround for std::list::size() having linear complexity on some implementations
Fix m_randquote with 0 quotes
Initialize local_count
m_geoip Set cc in OnSetConnectClass to the newly created string if it was NULL
m_httpd_acl Reread config on rehash
m_channames Fix iteration in ValidateChans()

Spotted by @Adam-