Ah... i finally managed to locate your clifly work
Ok, in case you wish to add native Pascal support then i believe you already seem to have found your answer ?
Another way would be by using available libaries on AROS itself (or extractor in this case). Not sure but i believe that xad supports lzx ?
Of course using a native implementation means that you can compile/run your tool anywhere (provided the code used is processor agnostic)
Nice idea btw, and one i've been toying around with myself for a while as well now.... reason for that is that i seem to have to re-invent the wheel everytime i setup my build/install-scripts. There's always someone complaining not having bash or no sed/awk installed or alike.
fwiw feel free to add a dedicated thread for your questions on the Free Pascal sub-board....