first attempt at cross-platform package scripts
Merge branch 'master' into macosx