Use unique_ptr for upnp_thread (boost::thread)
Use unique_ptr for upnp_thread (boost::thread)

MeshCollider/bitcoin,rnicoll/dogecoin,brandonrobertz/namecoin-core,qtumproject/qtum,monacoinproject/monacoin,myriadcoin/myriadcoin,randy-waterhouse/bitcoin,joshrabinowitz/bitcoin,particl/particl-core,EthanHeilman/bitcoin,bespike/litecoin,ahmedbodi/vertcoin,midnightmagic/bitcoin,EthanHeilman/bitcoin,MeshCollider/bitcoin,starwels/starwels,cdecker/bitcoin,kallewoof/bitcoin,Kogser/bitcoin,achow101/bitcoin,n1bor/bitcoin,digibyte/digibyte,Kogser/bitcoin,BTCGPU/BTCGPU,ElementsProject/elements,BTCGPU/BTCGPU,n1bor/bitcoin,ajtowns/bitcoin,deeponion/deeponion,laudaa/bitcoin,Christewart/bitcoin,CryptArc/bitcoin,deeponion/deeponion,myriadteam/myriadcoin,cdecker/bitcoin,dscotese/bitcoin,tecnovert/particl-core,GroestlCoin/bitcoin,FeatherCoin/Feathercoin,Kogser/bitcoin,ajtowns/bitcoin,GroestlCoin/bitcoin,mruddy/bitcoin,MeshCollider/bitcoin,bitcoinknots/bitcoin,cdecker/bitcoin,thrasher-/litecoin,randy-waterhouse/bitcoin,nikkitan/bitcoin,mb300sd/bitcoin,sipsorcery/bitcoin,thrasher-/litecoin,achow101/bitcoin,Rav3nPL/bitcoin,GroestlCoin/GroestlCoin,qtumproject/qtum,jnewbery/bitcoin,particl/particl-core,prusnak/bitcoin,jmcorgan/bitcoin,tecnovert/particl-core,joshrabinowitz/bitcoin,practicalswift/bitcoin,apoelstra/bitcoin,bitcoinsSG/bitcoin,h4x3rotab/BTCGPU,domob1812/namecore,apoelstra/bitcoin,AkioNak/bitcoin,tjps/bitcoin,kallewoof/bitcoin,practicalswift/bitcoin,achow101/bitcoin,1185/starwels,1185/starwels,instagibbs/bitcoin,thrasher-/litecoin,bitcoin/bitcoin,litecoin-project/litecoin,litecoin-project/litecoin,prusnak/bitcoin,digibyte/digibyte,CryptArc/bitcoin,kallewoof/bitcoin,Rav3nPL/bitcoin,jamesob/bitcoin,tecnovert/particl-core,EthanHeilman/bitcoin,FeatherCoin/Feathercoin,vertcoin/vertcoin,randy-waterhouse/bitcoin,h4x3rotab/BTCGPU,afk11/bitcoin,mruddy/bitcoin,midnightmagic/bitcoin,namecoin/namecore,monacoinproject/monacoin,namecoin/namecore,AkioNak/bitcoin,fujicoin/fujicoin,cdecker/bitcoin,lbryio/lbrycrd,BTCGPU/BTCGPU,qtumproject/qtum,bitcoin/bitcoin,laudaa/bitcoin,wellenreiter01/Feathercoin,TheBlueMatt/bitcoin,GlobalBoost/GlobalBoost,ahmedbodi/vertcoin,MarcoFalke/bitcoin,ryanofsky/bitcoin,cdecker/bitcoin,r8921039/bitcoin,yenliangl/bitcoin,maaku/bitcoin,CryptArc/bitcoin,paveljanik/bitcoin,CryptArc/bitcoin,nikkitan/bitcoin,guncoin/guncoin,yenliangl/bitcoin,nikkitan/bitcoin,rnicoll/dogecoin,ahmedbodi/vertcoin,afk11/bitcoin,rawodb/bitcoin,donaloconnor/bitcoin,lateminer/bitcoin,Flowdalic/bitcoin,stamhe/bitcoin,jambolo/bitcoin,viacoin/viacoin,Kogser/bitcoin,sebrandon1/bitcoin,prusnak/bitcoin,qtumproject/qtum,Flowdalic/bitcoin,Flowdalic/bitcoin,paveljanik/bitcoin,brandonrobertz/namecoin-core,tjps/bitcoin,jmcorgan/bitcoin,r8921039/bitcoin,vmp32k/litecoin,practicalswift/bitcoin,OmniLayer/omnicore,lateminer/bitcoin,paveljanik/bitcoin,GlobalBoost/GlobalBoost,lbryio/lbrycrd,maaku/bitcoin,JeremyRubin/bitcoin,Flowdalic/bitcoin,guncoin/guncoin,sstone/bitcoin,myriadcoin/myriadcoin,myriadteam/myriadcoin,peercoin/peercoin,sebrandon1/bitcoin,jamesob/bitcoin,MazaCoin/maza,qtumproject/qtum,myriadteam/myriadcoin,namecoin/namecore,GlobalBoost/GlobalBoost,sipsorcery/bitcoin,starwels/starwels,mm-s/bitcoin,myriadcoin/myriadcoin,vmp32k/litecoin,viacoin/viacoin,kallewoof/bitcoin,donaloconnor/bitcoin,kallewoof/bitcoin,pataquets/namecoin-core,Christewart/bitcoin,dscotese/bitcoin,sstone/bitcoin,BTCGPU/BTCGPU,AkioNak/bitcoin,TheBlueMatt/bitcoin,mb300sd/bitcoin,domob1812/bitcoin,h4x3rotab/BTCGPU,pataquets/namecoin-core,starwels/starwels,sstone/bitcoin,n1bor/bitcoin,andreaskern/bitcoin,viacoin/viacoin,joshrabinowitz/bitcoin,myriadcoin/myriadcoin,prusnak/bitcoin,particl/particl-core,jambolo/bitcoin,jtimon/bitcoin,r8921039/bitcoin,yenliangl/bitcoin,mb300sd/bitcoin,jmcorgan/bitcoin,domob1812/bitcoin,bitcoin/bitcoin,GroestlCoin/bitcoin,ericshawlinux/bitcoin,jlopp/statoshi,fujicoin/fujicoin,dscotese/bitcoin,domob1812/bitcoin,sipsorcery/bitcoin,domob1812/huntercore,jlopp/statoshi,fanquake/bitcoin,globaltoken/globaltoken,GroestlCoin/GroestlCoin,vmp32k/litecoin,bitcoinsSG/bitcoin,Kogser/bitcoin,kazcw/bitcoin,n1bor/bitcoin,untrustbank/litecoin,jtimon/bitcoin,GlobalBoost/GlobalBoost,GlobalBoost/GlobalBoost,MazaCoin/maza,domob1812/huntercore,GroestlCoin/GroestlCoin,pataquets/namecoin-core,afk11/bitcoin,wellenreiter01/Feathercoin,andreaskern/bitcoin,MazaCoin/maza,TheBlueMatt/bitcoin,jamesob/bitcoin,untrustbank/litecoin,laudaa/bitcoin,randy-waterhouse/bitcoin,ryanofsky/bitcoin,CryptArc/bitcoin,pstratem/bitcoin,tjps/bitcoin,myriadteam/myriadcoin,donaloconnor/bitcoin,RHavar/bitcoin,instagibbs/bitcoin,namecoin/namecore,bespike/litecoin,monacoinproject/monacoin,rnicoll/dogecoin,GroestlCoin/GroestlCoin,ElementsProject/elements,Bushstar/UFO-Project,ryanofsky/bitcoin,ryanofsky/bitcoin,n1bor/bitcoin,rnicoll/bitcoin,MeshCollider/bitcoin,TheBlueMatt/bitcoin,jmcorgan/bitcoin,domob1812/namecore,joshrabinowitz/bitcoin,fujicoin/fujicoin,kallewoof/bitcoin,GroestlCoin/bitcoin,pstratem/bitcoin,namecoin/namecoin-core,digibyte/digibyte,jamesob/bitcoin,globaltoken/globaltoken,namecoin/namecore,instagibbs/bitcoin,midnightmagic/bitcoin,GroestlCoin/bitcoin,rnicoll/bitcoin,Sjors/bitcoin,nikkitan/bitcoin,OmniLayer/omnicore,viacoin/viacoin,myriadcoin/myriadcoin,sebrandon1/bitcoin,droark/bitcoin,qtumproject/qtum,vertcoin/vertcoin,wellenreiter01/Feathercoin,qtumproject/qtum,EthanHeilman/bitcoin,bitcoinknots/bitcoin,pataquets/namecoin-core,gjhiggins/vcoincore,bitcoin/bitcoin,practicalswift/bitcoin,TheBlueMatt/bitcoin,bitcoinknots/bitcoin,MarcoFalke/bitcoin,Xekyo/bitcoin,jonasschnelli/bitcoin,1185/starwels,mb300sd/bitcoin,tjps/bitcoin,anditto/bitcoin,wellenreiter01/Feathercoin,mm-s/bitcoin,rawodb/bitcoin,fanquake/bitcoin,afk11/bitcoin,jamesob/bitcoin,domob1812/bitcoin,starwels/starwels,viacoin/viacoin,Kogser/bitcoin,rnicoll/bitcoin,DigitalPandacoin/pandacoin,JeremyRubin/bitcoin,jmcorgan/bitcoin,ajtowns/bitcoin,RHavar/bitcoin,Sjors/bitcoin,jonasschnelli/bitcoin,GroestlCoin/GroestlCoin,bespike/litecoin,RHavar/bitcoin,vmp32k/litecoin,OmniLayer/omnicore,ryanofsky/bitcoin,stamhe/bitcoin,digibyte/digibyte,tecnovert/particl-core,jonasschnelli/bitcoin,starwels/starwels,MeshCollider/bitcoin,jambolo/bitcoin,deeponion/deeponion,mruddy/bitcoin,kazcw/bitcoin,Kogser/bitcoin,r8921039/bitcoin,jonasschnelli/bitcoin,instagibbs/bitcoin,MarcoFalke/bitcoin,Christewart/bitcoin,Christewart/bitcoin,randy-waterhouse/bitcoin,JeremyRubin/bitcoin,rnicoll/bitcoin,andreaskern/bitcoin,Sjors/bitcoin,myriadteam/myriadcoin,ericshawlinux/bitcoin,mitchellcash/bitcoin,guncoin/guncoin,TheBlueMatt/bitcoin,jtimon/bitcoin,lateminer/bitcoin,droark/bitcoin,mitchellcash/bitcoin,MazaCoin/maza,JeremyRubin/bitcoin,gjhiggins/vcoincore,jamesob/bitcoin,globaltoken/globaltoken,rawodb/bitcoin,RHavar/bitcoin,maaku/bitcoin,rnicoll/dogecoin,mruddy/bitcoin,FeatherCoin/Feathercoin,monacoinproject/monacoin,CryptArc/bitcoin,lbryio/lbrycrd,alecalve/bitcoin,laudaa/bitcoin,EthanHeilman/bitcoin,ahmedbodi/vertcoin,ahmedbodi/vertcoin,dscotese/bitcoin,untrustbank/litecoin,jmcorgan/bitcoin,wellenreiter01/Feathercoin,kazcw/bitcoin,ahmedbodi/vertcoin,practicalswift/bitcoin,brandonrobertz/namecoin-core,Kogser/bitcoin,namecoin/namecoin-core,RHavar/bitcoin,jambolo/bitcoin,vertcoin/vertcoin,afk11/bitcoin,jnewbery/bitcoin,sipsorcery/bitcoin,untrustbank/litecoin,ericshawlinux/bitcoin,bitcoinsSG/bitcoin,viacoin/viacoin,laudaa/bitcoin,pstratem/bitcoin,stamhe/bitcoin,sebrandon1/bitcoin,Xekyo/bitcoin,thrasher-/litecoin,globaltoken/globaltoken,bitcoinknots/bitcoin,jonasschnelli/bitcoin,Kogser/bitcoin,DigitalPandacoin/pandacoin,mruddy/bitcoin,bitcoinsSG/bitcoin,Xekyo/bitcoin,fanquake/bitcoin,bespike/litecoin,rawodb/bitcoin,namecoin/namecoin-core,GroestlCoin/bitcoin,instagibbs/bitcoin,starwels/starwels,EthanHeilman/bitcoin,fanquake/bitcoin,brandonrobertz/namecoin-core,dscotese/bitcoin,cdecker/bitcoin,achow101/bitcoin,andreaskern/bitcoin,gjhiggins/vcoincore,domob1812/huntercore,apoelstra/bitcoin,droark/bitcoin,DigitalPandacoin/pandacoin,ericshawlinux/bitcoin,domob1812/bitcoin,particl/particl-core,namecoin/namecoin-core,RHavar/bitcoin,Xekyo/bitcoin,anditto/bitcoin,fujicoin/fujicoin,1185/starwels,bitcoin/bitcoin,mitchellcash/bitcoin,mm-s/bitcoin,midnightmagic/bitcoin,AkioNak/bitcoin,stamhe/bitcoin,AkioNak/bitcoin,vertcoin/vertcoin,Flowdalic/bitcoin,JeremyRubin/bitcoin,jambolo/bitcoin,FeatherCoin/Feathercoin,lateminer/bitcoin,kazcw/bitcoin,domob1812/namecore,donaloconnor/bitcoin,MarcoFalke/bitcoin,Rav3nPL/bitcoin,andreaskern/bitcoin,h4x3rotab/BTCGPU,vertcoin/vertcoin,domob1812/namecore,mitchellcash/bitcoin,bespike/litecoin,Bushstar/UFO-Project,thrasher-/litecoin,bespike/litecoin,sstone/bitcoin,globaltoken/globaltoken,pstratem/bitcoin,prusnak/bitcoin,jambolo/bitcoin,rawodb/bitcoin,ElementsProject/elements,BTCGPU/BTCGPU,rnicoll/bitcoin,fujicoin/fujicoin,ericshawlinux/bitcoin,alecalve/bitcoin,ericshawlinux/bitcoin,mm-s/bitcoin,anditto/bitcoin,midnightmagic/bitcoin,myriadteam/myriadcoin,paveljanik/bitcoin,OmniLayer/omnicore,bitcoinsSG/bitcoin,Sjors/bitcoin,sebrandon1/bitcoin,gjhiggins/vcoincore,particl/particl-core,tjps/bitcoin,laudaa/bitcoin,pataquets/namecoin-core,namecoin/namecore,yenliangl/bitcoin,vmp32k/litecoin,h4x3rotab/BTCGPU,DigitalPandacoin/pandacoin,fanquake/bitcoin,GlobalBoost/GlobalBoost,domob1812/huntercore,wellenreiter01/Feathercoin,ElementsProject/elements,prusnak/bitcoin,lateminer/bitcoin,pstratem/bitcoin,namecoin/namecoin-core,MarcoFalke/bitcoin,MazaCoin/maza,pstratem/bitcoin,apoelstra/bitcoin,sstone/bitcoin,sipsorcery/bitcoin,gjhiggins/vcoincore,sebrandon1/bitcoin,alecalve/bitcoin,1185/starwels,tjps/bitcoin,anditto/bitcoin,vertcoin/vertcoin,achow101/bitcoin,droark/bitcoin,n1bor/bitcoin,r8921039/bitcoin,1185/starwels,FeatherCoin/Feathercoin,litecoin-project/litecoin,Bushstar/UFO-Project,domob1812/bitcoin,practicalswift/bitcoin,mb300sd/bitcoin,tecnovert/particl-core,paveljanik/bitcoin,peercoin/peercoin,brandonrobertz/namecoin-core,deeponion/deeponion,pataquets/namecoin-core,monacoinproject/monacoin,ElementsProject/elements,dscotese/bitcoin,alecalve/bitcoin,Bushstar/UFO-Project,digibyte/digibyte,mitchellcash/bitcoin,vmp32k/litecoin,untrustbank/litecoin,joshrabinowitz/bitcoin,anditto/bitcoin,Sjors/bitcoin,jlopp/statoshi,ElementsProject/elements,bitcoinknots/bitcoin,anditto/bitcoin,ryanofsky/bitcoin,achow101/bitcoin,r8921039/bitcoin,thrasher-/litecoin,nikkitan/bitcoin,DigitalPandacoin/pandacoin,MeshCollider/bitcoin,alecalve/bitcoin,alecalve/bitcoin,joshrabinowitz/bitcoin,rawodb/bitcoin,monacoinproject/monacoin,guncoin/guncoin,stamhe/bitcoin,digibyte/digibyte,guncoin/guncoin,ajtowns/bitcoin,domob1812/namecore,ajtowns/bitcoin,AkioNak/bitcoin,globaltoken/globaltoken,peercoin/peercoin,mm-s/bitcoin,jtimon/bitcoin,midnightmagic/bitcoin,namecoin/namecoin-core,domob1812/huntercore,domob1812/huntercore,particl/particl-core,maaku/bitcoin,stamhe/bitcoin,yenliangl/bitcoin,ajtowns/bitcoin,peercoin/peercoin,h4x3rotab/BTCGPU,peercoin/peercoin,litecoin-project/litecoin,deeponion/deeponion,guncoin/guncoin,tecnovert/particl-core,rnicoll/bitcoin,DigitalPandacoin/pandacoin,yenliangl/bitcoin,Christewart/bitcoin,jnewbery/bitcoin,rnicoll/dogecoin,Kogser/bitcoin,OmniLayer/omnicore,lbryio/lbrycrd,apoelstra/bitcoin,Xekyo/bitcoin,kazcw/bitcoin,ppcoin/ppcoin,Rav3nPL/bitcoin,mruddy/bitcoin,untrustbank/litecoin,Flowdalic/bitcoin,andreaskern/bitcoin,jlopp/statoshi,lbryio/lbrycrd,JeremyRubin/bitcoin,Rav3nPL/bitcoin,instagibbs/bitcoin,litecoin-project/litecoin,kazcw/bitcoin,litecoin-project/litecoin,bitcoinsSG/bitcoin,maaku/bitcoin,brandonrobertz/namecoin-core,FeatherCoin/Feathercoin,randy-waterhouse/bitcoin,ppcoin/ppcoin,lateminer/bitcoin,sipsorcery/bitcoin,ppcoin/ppcoin,bitcoin/bitcoin,maaku/bitcoin,donaloconnor/bitcoin,lbryio/lbrycrd,apoelstra/bitcoin,mitchellcash/bitcoin,afk11/bitcoin,jlopp/statoshi,deeponion/deeponion,MazaCoin/maza,Bushstar/UFO-Project,jnewbery/bitcoin,fujicoin/fujicoin,jtimon/bitcoin,Xekyo/bitcoin,Kogser/bitcoin,GroestlCoin/GroestlCoin,jtimon/bitcoin,MarcoFalke/bitcoin,mb300sd/bitcoin,nikkitan/bitcoin,sstone/bitcoin,OmniLayer/omnicore,lbryio/lbrycrd,droark/bitcoin,droark/bitcoin,Kogser/bitcoin,paveljanik/bitcoin,jnewbery/bitcoin,Rav3nPL/bitcoin,myriadcoin/myriadcoin,BTCGPU/BTCGPU,peercoin/peercoin,jlopp/statoshi,mm-s/bitcoin,donaloconnor/bitcoin,domob1812/namecore,Bushstar/UFO-Project,fanquake/bitcoin,ppcoin/ppcoin,GlobalBoost/GlobalBoost,gjhiggins/vcoincore,Christewart/bitcoin