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.
Merge pull request #2852 from petertodd/getblock-chainwork

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

Partial solaris support