Fix compiler directive to XE3. Change create instance to use constructor.
Add support to XE3