I attached a Makefile for pix_openni that works on Mac OS X, and should work on GNU/Linux but I haven't tested it. It should be easily adaptable to pix_freenect too.