adds wordreg hooks to libdevice functions