Magnesium oxide or magnesium carbonate cements