fixed a bug in miracl makefile:
when Miracl is complied for C++, all source files including .c files
must be compiled with g++ and not gcc (due to c++ symbol mangling problems).
fixed a few issues discovered with the otextension lib while trying to compile on mac