Remove nonstandard and statement.
Move IplImage reassignment outside loop, it shouldn't have been placed there.
Turn on all warnings for build script.
Decrease delay between frames.