doc: use -g3 for debug build

-ggdb3 is not needed for many platforms.