Revert "vm: lower optimization level to O2"

This reverts commit b3376c8810ed30111587df29792fc85bbc5bcd7a.