build protobuf debug version https://github.com/protocolbuffers/protobuf/issues/1102 ./configure CXXFLAGS="-O0 -g -DDEBUG -static"