varint C extension (for ruby protocol buffers)