Update to build with Tundra 2
Allow compiling target on other OSs
Time out on socket connection after 10 seconds.
Flush received stdout data.