fix build errors only

Fix build errors with latest OpenCV

Also disable (accidental?) overriding of CFLAGS