Added prologues/patches that are needed to hook functions in file descriptor
module.