Compile with/without axTLS

Also fix a misuse of sizeof()