optimize compiler settings