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="1" FEATURES="test" USE="cxx pam png threads xml gnutls" sudo -E emerge -av libonion
```