Patches and modified code for different versions of OpenVDB