Minor changes for Windows compilation (UNFINISHED)

- Added a lot of missing headers.
- The call to fork() used for executing server from client has been
replaced by a call to QProcess::execute().
- Minor fixes.