more libc etc. fixes