fixed several compilation warnings with Delphi XE6