Port to systems which do not provide open_memstream

Use make -f Makefile.BSD