Use util.inherits instead of simple prototype assignment.