changes for better portability
add new wio.h for handling posix io header
add permision macros