PInvoke methods using SetLastError get dropped on Windows x64 full AOT.