Mechanisms of ductility improvement in L12 compounds