Fix procedure CheckPackagePtr doesn't work in Win64 application built wi...

...th runtime packages