Fix minified builds.
Fix avoid hang in web worker unit test for phantomjs.