Does the lua interface allow you to force fflush on stdout and stderr? I know there's some really bizarre issues in mingw/msys2 with stderr not fflush()ing itself instantly (like it does on POSIX systems) on windows.
"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"