Add basic stackframe trace; provide non-optimize option in CMakeLists.txt