replace posix file io functions by standard iso c io functions in wlib project