Fix call to static function

Tested with "make check" after merge from master