fixed compile error with -fpermissive, and SPACE key not working with the webcam sample