I use pickling lime, since it's food grade and inexpensive. Those products might be fine. The Mag Flake product seems to be fine for tanks. The magnesium sulfate is just epsom salts, and I just get it at the drug store. The USP products seem to be fine.
This article contains the recipes:
http://reefkeeping.com/issues/2006-07/rhf/index.php