As regards the "invalid machine type" error with Visual Studio, I googled this at http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=2436 :
"Usually, you do not need to specify the /MACHINE option. LINK infers the machine type from the .OBJ files. However, in some circumstances LINK cannot determine the machine type and issues a linker tools error LNK1113. If such an error occurs, specify /MACHINE." On the strength of that, I guess you could try editing Config_heavy.pl, changing: ld='link' to: ld='link /MACHINE:X86' assuming it is an X86 machine. (See 'link /?' for full option listing.) Does that help at all ? Cheers, Rob