Fixes for centos / static build.