The thing with libiberty can be solved by adding a lynxos-specific clause in libiberty's configury that tells it which library functions lynxos has, much like we already have for newlib, cygwin, and djgpp.