mem: Add support for transparent huge pages