configure: Prefix libc-related variables with "libc_"

Simplifies host/target libc detection splitting.