Added CMake compatibility

- Added CMakeLists
- Renamed server.c to server.cpp to be able to build other C files with
C instead of CXX compiler