Fix backwards compatability while allowing for forwards compatability

Fixes compatibility with older projects while allowing for newer projects to use the TLS features.