x64 fix + warnings remove

Fix calling function returning record under x64
Remove some warnings (implicit ANSI to UNICODE conversion)