Add fd_of_int and int_of_fd helper functions.
Fix typo in Makefile