Add error domain for OpenCL library errors

Some issues pending, test_platforms seg faults.