do not force building of CANSocket when building tests + not use globbing for source list

According to the CMake mailing list, it is not recommended to use
globbing to build file lists, because the CMake file does not change
therefore new tests are not included in a subsequent build
fix build for newer system

It seems unistd.h was originally included via another header
which is not the case for at least gcc 4.7.2