m_pgsql Same fix as 0e09600a431d0e0f2cde6457e088d84caf6d6f5d
Fix inet_pton on Windows with IPv6 addresses

Code from Anope win32/socket.cpp by @Adam-