ttyrec: use our CFLAGS; fix cross build.