Fix build order for old-router