small hacks in libm =)