Fix a dumb threading-bug in RobotNew.dpr
Numerous changes for the port to FPC/Linux

This code does NOT yet work!!
But it's getting closer. :)