Bugfix: Some versions of MingW define localtime_r, but don't handle the timeval.tv_sec case that we use; so undef any preexisting one and use our own
Merge commit '1ebe1ef' into bfgminer
Bugfix: Use SOCKETTYPE for notifiers, to avoid potential overflow on Win64