additional fixes suggested by @anba

These are necessary to fix #74 for js, jsc, d8.  Tested on Windows, needs verification on OSX