GD 2.1.0 support for PHP 5.5

This adds almost all support for GD ext features (minus antialias functionality) using GD-2.1.0 library.

The extension compiles just fine with this patch, but it might need a review for GD-2.0 and GD-BUNDLED. Didn't have a time yet to try all variants.