Add some statements that print error messages
Free palette image
Merge branch 'develop' into fix-stdin-fseek-problem
Read and discard stdin data only when fseek failed
Change end of line style of some files, CRLF to LF