fix build for browsers
Merge pull request #1354 from matiu/fixes-extensions-build

fix build for browsers