Fix Kylix compilation errors
Fix IF/IFEND breaking Delphi2/Delphi3 support
Merge pull request #37 from Shoozza/kylix-compatibility-fix

Fix Kylix compilation errors