Build fixes

- make the integration tests optional
- do not use c++ but cpp so that web servers don't go crazy
- optionally install library files in an arch-specific dir
- version the soname for the Linux/Unix shared library
- lower the cmake requirement to 2.6