Allow compiling with a different gdlib-config

Very useful when using with development versions of libgd