Fix the build issue with --enable-static

Fixes #109
1 job from master in 6 minutes and 32 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #21910
build

00:06:32