Fixed compilation issues with tomcrypt 1.18
Fixed compilation issues with tomcrypt 1.18

Also preparing to switch from built-in chacha20/poly1305 implementation to the one in tomcrypt (works on big endian machines)
eduardsui/tlse,eduardsui/tlslayer