added correct check for gd and check for php-intl

fixes #2678

@bartv2 @karlitschek @DeepDiver1975