Make includes of unistd.h and fcntl.h conditional