fixed RGBD compile errs and warnings

this probably fixes the internal compiler error