small fixes in libc etc.