Surface alloying and pinhole formation in ultra-thin films