Fix the build issue with --enable-static

Fixes fontconfig/fontconfig#109
1 job for fc109 in 6 minutes and 21 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #21908
build

00:06:21