change nmod_mat_mod_t_half() interface
define types so code compiles standalone