[mr2740] fix some VC warnings