S_IREAD and S_IWRITE are replaced with S_IRUSR and S_IWUSR.
They are no more available on Android.
Move S_IRUSR and S_IWUSR declarations into npk_conf.h