fix run out of memory when receiving large files from Calibre
also paint widget if any widget underneath is dirty
ignore koreader output file for clang target
Merge pull request #932 from chrox/master

fix run out of memory when receiving large files from Calibre