Remove the unused "reject_class()" method.
Handle friend functions where "friend" is not first specifier.

This leaves "typedef" as the only specifier that must be placed as
the first specifier, and even then this restriction on "typedef" is
only when used with a function e.g. "int typedef x(int y);"