Static build fixes.