build system fixes, as well as BTC fee calculation rounding fix
Merge branch 'develop' of https://github.com/xnova/counterwallet into develop