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.
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
Fix off-by-one errors in using IsFinalTx()

Previous AcceptBlock() and CreateNewBlock() didn't take into account the
fact that IsFinalTx() without any arguments tests if the transaction is
considered final in the *current* block, when both those functions
really needed to know if the transaction would be final in the *next*
block.

Additionally the UI had a similar misunderstanding.

Also adds some basic tests to check that CreateNewBlock() is in fact
mining nLockTime-using transactions correctly.