Changes to work on redhat on ec2