fix build warnings under VS