make the compiler happy by using size_t for fread/fwrite return values