fix warnings given by miscrosoft compiler