This patch should appease the bots building with -DBUILD_SHARED_LIBS=On, resolving the regression introduced in 92f9852f.