Get rid of transmute and fix memcmp return value casting