Partially fixed data transfer session unit test.
Fixed libraby linking which led to multiple initialization of static variable (detected by valgrind's drd). Worked around cmake's failing dependency management for generated protocol buffer sources (double make in spec file). Partially fixed the first data transfer session unit test (still disabled). Fixed a typo in an error message.