Patch from metze and me that adds dummy smb_register_*() functions