Remove read to stringstream. Use ifstream instead
Stringstreams aren't copyable in C++.
Also added defines to gui for compiling on mingw
Remove client_main call from WinMain