Add missing header file and link against libjson-c

* unistd.h is required in order to compile successfully. 
m2pp-cgi.cpp calls fork, getopt and optarg.
* Link against libjson-c in order to work cross-platform.