Fix release and x64 builds.