Keep auto method defns in class declaration

This fixes our compatibility with gcc 4.7.  It looks like we'll need
to disable auto for gcc 4.6 and older.