cmake update

This includes:
- handling src/ and test/ separately
- fixes for linking cppunit
- fix for compilation of newton_test (src/main.cpp was accidentaly
  included)
- avoiding recompilation of main libraries for newton and newton_test

Let me know if this works for you (I'm not a cmake expert) and if you want me to change anything.