another fix for FPC cross-platform