Checking that fread *actually* succeeds, fix the warning bellow when compiling with -O1, -O2 or -O3.
"warning: ignoring return value of 'fread', declared with attribute warn_unused_result"