[build] some more centos build fixes