Add a 3-point version for sqlate.

Also reset the SOVERSION to be the same as the major version.
Update the minimum CMake version to 2.8.7.

CMAKE_AUTOMOC is used unconditionally, so that is a reasonable version.
Replace sqlate_export with generate_export_header invokation.

This simplifies the code a bit.