Fix doxygen and build warnings