Some preparatory work to get everything to compile with FPC on Linux