Fix typo: CRTSECURE_NO_WARNINGS should be _CRT_SECURE_NO_WARNINGS.
Fix type cast for recv().