HFS Code from xpwn as a library