util.inherits with an extra argument to add properties.