_POSIX_SOURCE

I needed to define _POSIX_SOURCE to get it to compile. "fileno" isn't supposed to be defined if _POSIX_SOURCE isn't defined. License politics...