Add script to update the version number in MacOS
[http] Fix bug when downloading encrypted files.
Fix some compile warnings.