On Mac OS X they disable the definition of the timeval macros and on Linux they are defined by default. Thus removing them makes everything work on both platforms.