jim-win32: compile fixes for mingw32