IMG_* constants are not defined if GD is not configured with PHP
IMG_* constants are not defined if GD is not configured with PHP

merge from hpdl r1566


osCommerce/oscommerce,osCommerce/oscommerce,haraldpdl/oscommerce,haraldpdl/oscommerce