Fixed a couple warnings

- Non-static non-extern warnings in `main.cpp`

- Implicit copy constructor/operator in Socket