Reworked conditional compilation

[ci skip]
Fix different SSL behaviour in R15