Add include for fcntl library
Add stdlib library to use exit()