Fix Windows file opening in binary mode.

Hi,

I was having some issues using rospack on windows (7 x64), rospack failed at opening some binary files.
I finally found that Windows need a special flag to open a file in binary mode.
Please consider merging the fix into the master branch.

Regards,