enhanced compatibility with Lazarus / FPC 2.6.4