fix compile errors due to libwallet port.