add todo: build with system libgd, see also 73c5128