Adds preprocessor directives around CEM options in get_model_parameters.

Sorry for the extra merge commit, still getting used to rebase.