add interactive support for MinGW