More missing PHONY targets.
Add flatten util methods.