Libraries were not available when BUILD_SHARED_LIBS are on