Using same type for byteRate as is passed to fwrite. Fixes #158
Merge pull request #173 from jarl-dk/fix_for_158

Using same type for byteRate as is passed to fwrite. Fixes #158