Fix for crash with libc++ (FreeBSD 10)

Fix for a crash in rangetree reported here:
https://developer.blender.org/rB9bbb30bf03b21f4bc9d19250a9f9342157b19aac
Merge pull request #1 from ideasman42/master

Fix for crash with libc++ (FreeBSD 10)