Fix CMakeLists.txt

For non-Windows build the platform sources located in src/linux and
src/solaris respectively were ommitted from the build, resulting in
linker errors when linking applications to the libpthread-workqueue.
This includes the test application.
This patch adds those sources - depending on the current OS - to the SRC
list.