Ported server form Linux to Windows.
TODO:
Test after finish client.