Add a "compile with closure" script

This script currently produces 177 warnings (but 0 errors!). I'll get that count down over subsequent changes.