substrate: fix some problems on older versions of CentOS