fix const volatile MSC++ compilation  error