Fix build breakage caused by r1717474 in perl < 5.13.6 (mg_free_type() was added in 5.13.6). Spotted by Rainer Jung <rainer.jung@kippdata.de>.