Fixes for IE and new mocha.