Open /dev/mem O_RDONLY instead of O_RDRW.

While it isn't being written to with the current code, better safe than
sorry.
Merge pull request #1 from sshimko/master

Open /dev/mem O_RDONLY instead of O_RDRW.