Revert "Fix segmentation fault on Windows"

This reverts commit 205717284db9b1d0c40adde3dca49ca53502ddcc.