mm-camera-interface: Add -Wno-unused-but-set-variable

- build with -O2 if we are using -O3