Mozambique has signed oil and gas exploration agreements as the country seeks to become a major exporter.