Adding fixes for more compatibility.

- Adding forwarding for rejectUnauthorized and secureProtocol tls options.
Merge pull request #1 from gcochard/master

Adding fixes for more compatibility.