Update Doxygen examples with recent API changes.
Fix compiler warning (-Wreorder).