update Makefile.PL to support GD versions >= 2.1

Code written by TBSilver here: https://rt.cpan.org/Public/Bug/Display.html?id=89592#txn-1319760  We've been using this patch in production for 8 months, so I assume it works OK.