gen_matypes: fix cross-compiling with gcc