Enable and fix building without JavaScript

Hi, this PR makes it possible to build mongodb without server-side javascript.  I'm open to doing the SConstruct fixes another way, but this works...