fix base64 decoding for big endian archs on which long is not 32 bits (like s390x)