Added unit tests to BFSocket and fixed CMakeLists to add nc stuff on libbf