fix vc++ warnings