include fcntl.h if we are on lion