Revert "Revert "buildsystem: update build process for 10.8""

This reverts commit d63c779874784f8437b9761dc550dd9258948cc9.
-Os (and -O2 and even -O1) on llvm break/crash the soft debugger.
Work around this for now by manually enabling -Os optimizations from the llvm doc.