gd: latest change from upstream, git rid of cmake