Fixed several compile-errors with FPC on Linux
More changes to compile with FPC on Linux
Merge pull request #2 from MichaelSchoebel/fpc-linux

Several changes to compile with FPC on Linux