Changes to compile on Linux, by Eric Sesterhenn <snakebyte@gmx.de>