gd: fix dep, cleanup