Don't store a reference to a function pointer.

Depending on compilation setup, this was causing issues on 64-bit
platforms that have only been exposed with some recent god work.