The summary says it all. It comes down to adding debug to IUSE and adding the following line to src_compile: use debug && append-flags "-DDEBUG"
Thanks! Added to screen-4.0.2-r4