Fix unitialized variable.
Add C++ flag for monotonic flag.