PrimeSense support + some compatibility-related changes