Fix for crash with libc++ (FreeBSD 10)

Fix for a crash in rangetree reported here:
https://developer.blender.org/rB9bbb30bf03b21f4bc9d19250a9f9342157b19aac