Fixing compilation problems
[#master: Merge branch 'master' of https://github.com/mxhero/attachmentlink]
[#master: Fixing change in download tries]