minor tweaks to allow building of win qt wallet

minor changes to code to allow build of win qt wallet - not official
changes, tested and will compile with open ssl 1.0.0g