gd: provide imageflip with system libgd when available
Merge branch 'PHP-5.5'

* PHP-5.5:
  gd: provide imageflip with system libgd when available