Day 1 of Kevin's Place Crunch

The changes made at Kevin's during day 1 of crunch time.

Fixes include:
- Linker fix for pthreads
- Minor stability tweaks to the netcode
- Some logic changes to prevent segfaults