fixes windows gdal issue 1538

For reasons beyond my ability to explain, the shapefiles that were written to the tempdir on windows machines were not correctly written, which raised errors in GDAL with malformed file headers. Adding the buffer flag  seems to solve the problem.