Integration of Linux and Win solutions

Slowly reintegrating the original turbo and making patches for the
windows solution. About half done - 3-4 files to go.