Last big style update:
fixed all warnings from gcc with -Wall -Wextra (without building demos, with ssl=openssl)