Trivial fixes to tests, added cmake tests, gentoo ebuild updated

You can run cmake tests
```
cd build
ctest -VV
```
to do the same with ebuild use "TEST_VERBOSE"
```
TEST_VERBOSE="0" FEATURES="test" USE="cxx pam png threads xml gnutls" sudo -E emerge -av libonion
```