Fixed compiler errors for GestureDetect