Porting to delphi XE5

Signed-off-by: Giuseppe Monteleone <info@ing-monteleone.com>