Fix compatibility issue with base64 on CentOS 5

fixes #6373