build: fix dynamic boost check when --with-boost= is used
build: fix qt test build when libprotobuf is in a non-standard path
Merge pull request #5073

d5fd094 build: fix qt test build when libprotobuf is in a non-standard path (Cory Fields)
a7d1f03 build: fix dynamic boost check when --with-boost= is used (Cory Fields)