Fix panic on windows, Issue #4.