patches: added jow's reghack from http://luci.subsignal.org/~jow/reghack/