fixed some incompatibilities with the resent prog->parent change.. Rev: src/builtin_functions.c:1.361 Rev: src/encode.c:1.96 Rev: src/program.c:1.311