Remove static variable pdoc, fix up names in pdfdoc.c, bash everything until it compiles.