More OSL closures work.

- Enabled debug and background closures (not implemented yet).
- Added more comments about closures in stdosl.h
- Other small changes / fixes.