Bugfix: CommonLibrary error with multiple library types

When XXX_LIBRARY_TYPE is a list, e.g. STATIC;SHARED, CMake
fails on line 94.

This patch stops CMake from failing, but does not address the
correct behaviour for MSVC when both shared and static libraries
are requested.