Changes to line endings
Thread and MP safety changes.  Note that on windows the append mode support is broken in GDAL VSIL and needs to be fixed for these changes to work correctly

Conflicts:
	README.md
	src/gdal_mrf/frmts/mrf/PNG_band.cpp
	src/gdal_mrf/frmts/mrf/marfa.h