Merge pull request #2 from MichaelSchoebel/fpc-linux

Several changes to compile with FPC on Linux
Fixed a build-error with Delphi

This error was introduced by a change made for FPC on Linux.
Reorganized the build-script for Linux