Windows fixes

Dont use the PID for generating the name of the pipe between the bg and
main process since the process has not been launched yet at that time.
Rather just use std::rand().

Also updated the windows build instructions and config.pri generation.