fix build on centos #869