CMake support
Replaced makefile with minimal CMakeLists.txt and changed #ifdef APPLE to #ifndef _WIN32 since sys/uio.h seems to be a Unix-central header.
Unfortunately it's not quite that simple; sys/uio.h is the wrong thing to include on non-osx unix platforms. I think stdio.h actually covers it, but I'll have to have a closer look.
okay
I've fixed main.c, so if you want to redo this pull request so that it only does the makefile changes then I'll happily commit it.
Oh, and change the minimum cmake version down to 2.0, please? There's no need to require 3.1 for this.
I'll get on it