Fix compilation on openSUSE 12.3.

Fixes #5038