Changes to main function to allow embedding. Note that this is very much experimental. It should not break anything when compiling a normal binary, but no promises are made. Rev: src/acconfig.h:1.145 Rev: src/configure.in:1.862 Rev: src/main.c:1.217