3766. [cleanup] Fixed problems with building outside the source tree when using native PKCS#11. [RT #35459]