Adding SSL support and tweaking makefile