I can share the modified version of the original source so it does compile and (at least seems to) operate with Lite-C.
But it has Spaghetti code functions with more than 600 lines (ouch!).
I did not try to fully understand it - but got to understand more than I wanted for resolving the compiler problems.
@ventilator: the input data is fixed (and can be very wild). I cannot take care to create compatible stuff. You assumption is not far off.