Magnesium cements containing sulfates, nitrates, phosphates or fluorides