fix build on redhat