klibc with changes by Maciej Żenczykowski