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're using this patch in production, so I assume it works OK.