Convert all libc functions to using FS.getStream