Fix out-of-tree build issues and Doxygen warnings