Working CMake configuration added.
Removed static libsocket library.
Merge branch 'cmake'

The new CMake build configuration should be working on a sufficient
level.