fixing compiler switches