Disable variadic template support in C++11
Fix boost uint type bug by reordering the includes
Add missing constant for solaris
Ignore SIGPIPE signal on Solaris
Fix fcntl include in net.cpp & netbase.cpp
Add 'chainwork' to getblock

Returns nChainWork from the block index, the total work done by all
blocks since the genesis block.
Bitcoin-Qt: tweak Qt walletXXX.cpp/h code

WalletView:
- add new signal showNormalIfMinimized()
- emit the new signal in handleURI() to fix a bug, preventing the main
  window to show up when using bitcoin: URIs

WalletStack:
- connect the showNormalIfMinimized() signal from WalletView with the
  showNormalIfMinimized() slot in BitcoinGUI
- rework setCurrentWallet() to return a bool
- add check for valid walletModel in addWallet()
- add missing gui attribute initialisation in constructor

WalletFrame:
- remove unused or unneded class attributes gui and clientModel
- add a check for valid clientModel in setClientModel()

General:
- small code formatting changes
Merge pull request #2872 from Diapolo/GUI_wallet

Bitcoin-Qt: tweak Qt walletXXX.cpp/h code
Bitcoin-Qt: extend some checks for valid model pointers
CreateNewBlock() now takes scriptPubKey argument,
rather than a key.

CreateNewBlockWithKey() helper is added to restore existing functionality,
making this an equivalent-transformation change.
RPC: getblocktemplate does not require a key, to create a block template

getblocktemplate only uses certain portions of the coinbase transaction,
notably ignoring the coinbase TX output entirely.

Use CreateNewBlock() rather than CreateNewBlockWithKey(), eliminating
the needless key passing.

Should be zero behavior changes.
Merge pull request #2926 from Diapolo/model_checks

Bitcoin-Qt: extend some checks for valid model pointers
Fix out-of-bounds check
Merge pull request #2852 from petertodd/getblock-chainwork

Add 'chainwork' to getblock
Merge pull request #2618 from fcicq/solaris-support

Partial solaris support
Merge pull request #2935 from sipa/obounds

Fix out-of-bounds check
Document and test OP_RESERVED weirdness

Seems it was forgotten about when IsPushOnly() and the unittests were
written. A particular oddity is that OP_RESERVED doesn't count towards
the >201 opcode limit unlike every other named opcode.
miner: constify CreateNewBlock() arg scriptPubKeyIn
Merge pull request #2938 from petertodd/op-reserved-weirdness

Document and test OP_RESERVED weirdness
Merge pull request #2928 from jgarzik/cnb-txout

CreateNewBlock / getblocktemplate cleaning