Introduced cmake variable LIBRARY_TYPE which can be either "STATIC" or
"SHARED". It will default to "STATIC".