Update iodevice_provider_memory.cpp

fixes mingw build