FFIs use longs instead of ints

Also integrates #458

A regen of c_src will remove the warnings on nitg_0.