Check if __GLIBC__ is defined

Fixes issue #20