easy const_cast fix  for g++ vs vc++