Starting OSL support.

The request contains mostly placeholders for now.
OSL support is enabled using the WITH_OSL cmake option.