Fix missing parameter in thread start
Make smoketest C++ not C
Use gtest's own tr1::tuple equivalent.

This makes the build work better with clang/C++11.
Start implementing new Capsicum API in terms of old API

Also migrate smoketest.cc to use the new-style API, and get it working on
FreeBSD9 / FreeBSD10 / Capsicum-Linux (current)
Move tests to new Capsicum API.

Builds and runs successfully on capsicum-linux, FreeBSD9.x
and FreeBSD10.0.
Auto-detect old vs. new Capsicum based on CAP_RIGHTS_VERSION