patch from http://forum.boxtec.ch/index.php/topic,2225.15.html suggested by the original library author