Cross-platform setup script

Not entirely sure this works -- I don't have my OS X system on me -- so
this may need some tweaking