Fix compile issue with MinGW-W64, which does have timespec defined