Is it really worth the work to do that from LCB? A while ago I installed HTML tidy 5.6.0 from here http://binaries.html-tidy.org (the Mac .dmg) Then I copied the binary "tidy" from /usr/local/bin compressed to my stack (=231 KByte). Now I use it from there, running it in the temporary folder via shell(). Works fine (on any 64bit Mac).