misc: additional MinGW fixes using embedded libs, refs #665