Remove obsolete checks.

Replacement methods are supplied by C++11.
Use macros for finding boost-system.
Use stricter memory order.

Newer compilers didn't allow "consume" when builing with optimizations.