Better tun the use of open_memstream to safe versions of glibc
Formatting tweaks