Merge pull request #213 from ktf/support-threaded

Support for THREADED and BOOSTIO branches.
Include optional support for boost serialization