Fix sign comparison mismatch.
Add stricter C++ flag.