general: fixed MinGW warnings, refs #665