Add empty socket class in new util library.

Also some whitespace changes in cmake files.