minor changes to make p5 run under fpc