Fix msvc12 compile error on base58 test, eliminate cast warnings.