gd uses #include <gdfonts.h>. But gdfonts.h is the part of gd. As the result, gd won't compile unless gd is installed.
Created attachment 17606 [details] A patch
The Makefile of the gd package does a -I. during compile which then does allow the use of #include <gdfonts.h> and automatically includes the correct (current) gdfonts.h file. So this is not bug and i've just checked again with all gd packages removed and it works fine on a plain 7.1 Read ya, Phil