Fix dependency generation for compat, test, and util