both browser- and node-friendly inherits() for browserify