Fix some declarations (e.g. size_t and pointer types). Add Mozilla ca certificates store. Add SSL error messages.