Fixes to browser build