Write compile and configure outputs into log files.
Introduce do_autoreconf function
Factor out compile/make/configure logging