Increase retry delay
Fix issue to download a file with accent with megaget (issue #22)

- use gcc/llvm cleanup attribute for simpler memory management