Reduce CPU usage while not taking photos.
Fix compile error with newer gdkmm versions.