Fixed incorrect build dependency order.