Changed winsock.h to winsock2.h in socket.hpp...apparently mingw 4.8 doesn't like including regular winsock.h...even though it is in the include folder...