build cleanup and other stuff.