LOG2: Use libc/libm's version.

It's not perfect, but close enough.  Ours wasn't any better.