call fns in __morestack via PLT on Linux/FreeBSD

Closes #5714