Enable gcc -Wold-style-declaration and fix issues
Store fread result in variable with correct type - size_t