mingw: abort on invalid strftime formats