fix compile issues on vc