Try to autodetect name mangling variations for WIN64 cross-compiling. Patch by Motofumi Oka.
Changed paths: