expect: make it cross-compile

Borrow cross-compilation patch from Buildroot.

Also, change "patchPhase" to "postPatch" so that the standard
"patchPhase" still works (i.e. "patches = [ ... ]" are applied).

BUG: Sometimes cross-compilation fails with an error simiar to when the
cross-compilation patch isn't applied(!).