Updates in OALplus and EGLplus

- Moved some of the error handling functions into the library.
- Moved the implementation of these functions into separate files.