Added CMakeBase.cmake

Moved some common cmake steps into a base file and simplified the make files. FreeBSD
builds are working now with all available clang versions (3.3-3.5 as of today).
Fixed cleanup code for uwsgi tests
acceptor: Add this ptr to debug/error messages
net_io_task: Make sure the watcher is initialized when calling start/stop/update methods
socket: Make code less platform dependant. We have full FreeBSD support now.
Added cmake/CMakeBase.cmake file