Fixed a couple warnings

- Non-static non-extern warnings in `main.cpp`

- Implicit copy constructor/operator in Socket
Replace the `g_` prefix with an `m_` prefix - the variable is no longer a global, it's a member.