fix __cdecl attribute ignored error for gcc x64