Tweaked the way compile_settings works.