Enhanced error handling.
Added WebCL to externs, so the min-build will compile.