Some more ifdefs to account for functions being __cdecl on Linux.