Let hooks work with unaligned functions.