Added extern "C" to fcntl.h.