browserify compatibility fixes