Minor  bug fix when saving: the current window was set as null during save file operation
Do not require libavdevice to build