Fix compatibility with procfs API changes in Linux 3.10