Install libgd-dev when --with-gd option is enabled
Merge branch 'travis-gd-integration' into build

Conflicts:
	.travis.yml