Fixed an error in the license and added myself as a contributor.
Changed the deprecated check for the definedness of unix to a check for POSIX.1-2001 or later.

It's best to play it safe until the behavior of all the called functions is verified.