try to support uclibc correctly