Updating cmake handling of static linking.

Adding the `ABACUS_STATIC_LINKING` option at the top level, which is
used in `src/CMakeLists.txt` to set up options for static linking.  It's
working on Linux, but is untested on Mac (where static linking is next
to impossible!).