fix an error that prevented compilation with more recent fpc