fix isoc++11 invalid conversions