ensure c linkage