fixed broken ifdef around timespec definition