more fixes for windows, minibufexpl