Conditionally compile bits that aren't present on old systems
Stop process before loading (and reading /proc/%d/mem)

Reading /proc/pid/mem fails otherwise on older kernels.
If a read throws on the lower layer, cache an empty page