#ifdef statements for windows socket creation were missing