Copy gutils/gimageread.c from sortsmill-tools

Original code was copied from sortsmill-tools on Feb 2013 but
removed all attribution. So I copied the file and retain
sortsmill-tools copyright.
Fix GIOGetMimeType() arguments
Fix build w/o libunicodenames