One 1.0.x version of FPC had a deviant way of dealing with procedure variables. This was changed later.

You could also try to compile with -S2, otherwise you have to add or remove a @ from all those error spots.