add fmemopen, open_memstream, open_wmemstream and their unittests, fix the unittest for fopencookie a little