add autocompile support, controlled via --compile (default) and --no-compile