Added ebi status codes to wait or retrieve results function, added compiler flags