title: Issue with CMake project building
body: <p>I have the following problem. On my Ubuntu I try to build a project and receive the following linker error(s) so far:</p>
  
  <pre><code>/usr/bin/ld:
  /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_thread.a(once.o): undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'
  /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO
  missing from command line collect2: error: ld returned 1 exit status
  make[2]: *** [sunprint] Error 1 make[1]: ***
  [CMakeFiles/sunprint.dir/all] Error 2 make: *** [all] Error 2
  *** Failure: Exit code 2 ***
  </code></pre>
  
  <p>I'm running under ubuntu 13 desktop, GCC 4.8, boost ver. is 1.54. As an IDE I'm working with 
  is the KDevelop.
  I can provide any additional info about this issue if needed, but now I'm stuck with 
  this linking problem.</p>
  
  <p>Any ideas?
  Thanx in advance.</p>