minor fixes for mingw autoconf build