Libraries were not available when BUILD_SHARED_LIBS is on