Allow shared libraries with BUILD_SHARED_LIBS

Removing the `STATIC` declaration will still, by default, build static libraries but allow users to specify `cmake -DBUILD_SHARED_LIBS:BOOL=YES .` on the command line to create shared libraries.