fix Chksum.add() method also for perl/ruby