Re-enabling SSL, build fixes