Browserify compatibility
see substack/node-browserify#372