Poorly written preprocessor bits in C code that assume that anything anyone ever runs is either Linux, BSD (including OS X), or Windows. They basically write the following:
#ifdef LINUX
// include Linux headers
#elif defined(BSD)
// include BSD headers
#else
// include Windows headers. What else would it possibly be?
#endif
The "mach.h" one is similar: people make a bad assumption that OS X is the only Mach kernel people use. (Hurd is obviously a counterpoint, just an unpopular one.)