Linux compilation fixes #2

With this Patches the Linux Version should compile again.

The one patch for WideCharToMultiByte is untested due to the Problems with the Linux Version, and i´m not sure about it.

But it should not be a problem, atm it is just useless.. in the Linux Version.

I´m not happy with the many ifdefs but for now i think its ok.