Fix up linking on Linux for the tests

Conflicts:
	CMakeLists.txt
	tests/serial_tests.cc