I did write one for MinGW. Please see the attached archive for details. Though it is still not well-tested and may have bugs or typos.
headers for intsafe.h functions
Thank you for your contribution. I'll look in more detail to your suggested implementation and will come back to this later.
Kai, did you commit this change at all?