Port to FPC/Linux

On first tests this now seems to work on Linux!