Fix size_t types in NIF.