fakefile.cc: add fmemopen() implementation for Mac OS X