Possible fix where optional .cxx dependency is moved out to a separate rule.