Manually sync with upstream auto-recursion and erlc-speedup branches

Also merge bootstrap 'make debug' fix.