Projectkk2glider/issue 1567

Closes #1567

I did some tests, but not very extensive. Please test before the merge! And I am also concerned about Windows build, regarding unlink() in helpers.cpp. I can't verify if I included correct header for Windows.