Build fixes for Arnold 4.1.

Arnold 4.1 removed some typedefs we were using, and introduced two new required functions in output drivers.
Fixed hangs when using procedurals with more recent arnold versions.
Merge pull request #177 from johnhaddon/arnold41

Arnold 4.1 Compatibility