Updated fmemopen