Added Windows specific headers/function calls 

Didn't compile for Windows from scratch, so I made a few adjustments: added winsock library dependency, defined sleep() and included winsock.h