Fixes for running on Windows.