configure: Refactor CPPFLAGS settings for glibc/uclibc