use ldd and Config to determine libc in places where ldd is available
Merge pull request #11 from plicease/better_libc_detection_in_some_places

use ldd and Config to determine libc in places where ldd is available