build: adding cleanup abilitites to buildsystem