Made the REngine compatible to both Windows and Linux and changed its
structure so that it may be extended with more functionality than
IMathEngine can provide.