Wrapped all unistd.h in wrappers.  Made a wrapper for other headers (fcntl.h, etc). Switched to using -std=c99 in MinGW, which eliminates most of the printf formatting issues, BUT which caused some porting issues