fixes to redhat kernel making errors