fixed compilation error with system libssl
fixed compliation warnings