add libc for linux and bsd