replace libgcheater with own functions

We now use src/memattach_l.c and src/memattach_l.c.
With that we don't need another library dependency anymore.