Fix for non-glibc linux environments