Arnold 4.1 Compatibility

What it says in the title - build fixes for Arnold 4.1 and a fix for the procedural hangs we've seen since 4.0.9.1.