Fix compilation of cmm files with -outputdir (Trac #9050)