refactored dependencies, by default it tries to build with everything minus openni
memory fix for os x