fixed minor coding and styling issues.
removed deprecated parameter.
cosmetics.
fixed compilation in Debug.
Merge branch 'master' into OSL_merge
Formatting fixes
Pass OSL's shading system to the scene's on_frame_begin / end