Skip the entire test if we don't have open_memstream

Otherwise the compiler still complains about the missing function