Adding GD support with libpng and libjpeg