fix FLT_ROUNDS regression in C++ applications