initial import of leb128.c (slightly modified)