Protect against gcc's "warning: cast does not match function type".