Fixed linker error. Had to link ws2_32.lib as additional depency