fix swift for linux
Merge pull request #829 from LipuFei/fix_swift

fix swift for linux
fix swift windows build again
Fix debian/bin/tribler security issue.

Use mktemp to put the log in temp directory with some random template
to avoid malicious user to overwrite someone's file by symlinks.

Please see https://bugs.debian.org/760561

Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Merge pull request #830 from LipuFei/fix_swift

fix swift windows build again
Merge pull request #831 from grandpaul/fixbinscript

Fix debian/bin/tribler security issue.
Merge pull request #835 from Tribler/next

Merge next back to devel