Fix in backup output files

(thanks to Toni Giorgino)

I fixed a missing include.

Original comment:
Fixes in backup output files - cant rename open file under windows - print reason for failure - remove leak of FILE*s
Updated changelog
Merge branch 'v2.0'