use fmemopen only with linux