[build] use correct openssl headers instead of the default ones

- since we don't use the deprecated and non-guaranteed system openssl library under macosx, using system openssl library headers and then linking to a new one might cause some serious issues
- this provides a more portable solution