Correct SIZE_T size according to MS SDK. Change some types to SIZE_T according to MS SDK definitions.