Fixed compile errors on generated .cxx files.