build: this cmake stuff could use a maintainer that actually knows cmake.