mock out c extensions