small hacks in libc