Fix build failure in absence of yaml-cpp

This fixes a build failure which occurs under obscure circumstances
(presence of libncurses on the system, but absence of yaml-cpp).

It seems like eval_solutions.cpp still has useful functionality in the absence of YAML, so I've just borrowed the elseif-throw pattern from elsewhere in the source.