minor fixes for MSYS