Initial (untested) linux support.
There were a lot of warnings that need to be fixed, but it did compile and link fine. Doubt it works though.