reentr.c: Handle systems without getpwent

Namely, Android.
Add Darwin shared libraries (dylib) to gitignore