Fix Linux compile error

Should fix callback type assertions on Linux builds.