fix build in various fpc versions on linux