Fix procedure CheckPackagePtr doesn't work in Win64 application built with runtime packages