add macros for unify usage of posix file stuff