Fix compile without GD