Removed defines in hog.h.
Added check for OpenNI in CMakeLists.txt (fixed bug 982).