Fixing segfault problems related to pyproj.