Revert "libmagic 5.12"

This reverts commit e2e69aff7507c2c56b54f36aa4ec1faea47e4061.

This fails to compile on Snow Leopard. Reported upstream:
http://bugs.gw.com/view.php?id=230

Closes #16943.