Made stuff work on windows.