You need to add both the include/ directory and the root gd.h directory in your include path for this to work.