Fix issues with building of tests

On my system quite a few of the test apps / unit tests would fail to build due to missing libcrypto / boost_system linking.