Minimal Select Server functionality for Windows

It's best to use an ostringstream for this since you avoid any memory management issues.