Updating build.sh to work on Mono
Fix ManagedAuthenticatedEncryptor not round-tripping payloads correctly.