fixes for centos

### Description
Almost all harness tests failed in jenkins.
This fix make the harness tests work again.