Change a lot of the threading using the precompiler to make it all Windows / Linux cross platform.
Authored by: doug_gillespie 2015-01-27
Parent: [r57]
Child: [r59]