Fixes for Building under Linux

I had to make some changes in order to get OpenNI2 to build on Linux.

The IsZero function in the XnLib code had to moved below the definition of Abs because it depended on the Abs definition.

In the Makefile for NiViewer, I added -pthread -lrt to the linker flags to pull in the necessary libraries.