Updating cmake files and build script.

Changing `ABACUS_STATIC_LINKING` to `STATIC_LINKING`.