fix #29: lint namespaces in an order that honors dependencies