Fix buildroot.sh optimizations.