Change references to GNU C extension's "typeof" to more ISO C friendly "__typeof__"

Otherwise, this generates a warning for each line when compiled with `-pedantic.`

See http://gcc.gnu.org/onlinedocs/gcc/Typeof.html for more information.