Codefix changes to compile with encog-core