Production and transaction costs in the long-run