Fix compilation due to missing pthread on Linux x86_64

See:
- https://github.com/occipital/OpenNI2/pull/26
- https://github.com/OpenNI/OpenNI2/issues/47
- https://github.com/pedroasad/OpenNI2/commit/716cffb2888bb2a0fa3264a22085caf8ce26368f