one more default=>defVal rename
one more default=>defVal rename
more gcc fixes
use std::min(), std::max() explicitly
can't forward-declare enums
more mingw build