main: fix the include statement
build: add a fix to prevent fileno warnings

 The _POSIX_SOURCE should be defined in stuff that includes unistd.h
so that we can use the stuff that's ifdeffed. If we want cross-
platformality, we'll need to figure that out for Windows (we'll have
to do a bit of that anyways)