more robust configure script to find protobuf lib