Move types.h include before ifaddres.h for u_int declaration
bitcoin-cli: Add missing SelectParamsFromCommandLine

The SelectParamsFromCommandLine call was missing in bitcoin-cli,
which caused `-testnet` and `-regtest` to be ignored. Add this
call just like in bitcoind.cpp.
Merge pull request #3328

9d2b73d bitcoin-cli: Add missing SelectParamsFromCommandLine (Wladimir J. van der Laan)
Merge pull request #3309

9ac5a01 Move types.h include before ifaddres.h for u_int declaration (Robert Backhaus)
Ported to CMake hardening option and platform specific linker flags.
Merge remote-tracking branch 'upstream/master'