fixed RGBD compile errs and warnings
Merge pull request #27 from vpisarev/rgbd_fixes