fix compile error on fpc 3.2.2