Properly read input file in binary mode

This mostly affected Windows, the input SWF file was not read as binary and
newlines were improperly read on Windows.
fix more file modes
Merge pull request #7 from fry/master

Read SWF file in binary mode on Windows