Deleted obsolete (out-commented) code
Ensured protobuf static library selection in cmake