Compile error, SPACE key (Linux)

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