Fix compilation as a static lib.