Added #includes for *BSD and OS X