included <functional> to fix build error
Merge pull request #20 from krobelus/master

Fixed compilation.
check why renaming downloads config file failed
Revert "check why renaming downloads config file failed"

This reverts commit 9c248f7e1f71ab330301ede5465b6eee7abad701.

done
Save download queue to the right config file