added flag for pthread lib required on newer RHEL