remove hardcoded STATIC library, is now decided using BUILD_SHARED_LIBS