Make available_compiler_options public and improve error message