Fix a warning. Use now same code to get platform as in stress.cxx