returning proper GSL error code for portability reasons

See list of error codes:
  https://www.gnu.org/software/gsl/manual/html_node/Error-Codes.html
do not hard-code the number of EWSB equations

We can use `numberOfEWSBEquations' because it is a compile-time
constant (defined as static const int).