Declare callback types with stdcall in Windows, fixing segfaults when trying to use them. (Not generated in non-windows builds, yet)