fix lint errors, switch to closurecompiler from gcc and make a couple of build optimisations