Fix subdir build order.