[PLAT-3506] Pass all build. prefixed properties
[RSTAT-63] Link package to Debug if available, otherwise use Release