Fixed compile errors in Doctor_NLG