remove sys/stat.h in header files for better Android compatibility