Merge LogPrintf from bitcoin to make future mergings easier