Fixing oofeg Elixir issues (redefined symbols) caused by inclusion of both oofem and Elixir config files. The definition of symbols made compatible with autoconf style
Fixing portability issues of testhelper.py
Fixing portability issues in testhepler.py
Fixing warnings on uninitialized variables
Fixing memory errors found by valgrind (some serious bugs, invalid reads that caused memory corruption in bdam occasionally)