Fixed dumb typo in Linux build platform
Substantially revised and fortified Mac build system