doxygen: use #ifndef to exclude internal classes from Doxygen.