Added check to see if we've got the relevant access to /dev/mem, so we throw an exception rather than segfaulting if we don't