[src][Makefile] Fixing up some compilation errors and warnings so that doc tool can work as intended
[doc] Generating docs