Added some error checking for sockets
Error checking on SDLNet_Init(), just in case
Putting utility functions into their own namespace