fix compiler warnings

from 191feb618f