patched src/unix/fs.c for android