gource: fix configure on OS X

Fixes #15808.