Bugfix

Fix little bugs, sable build, link ssl statically.