[polyml] CInterface causing poly to crash