Made server work on Windows