Add a functions to copy QtCore-inlines.dll to Tests and add an unsafe keyword to compile.

Add a functions to copy QtCore-inlines.dll to Tests.
Add an unsafe keyword to compile.