[core] cleanup settings.h - openssl not needed in global headers
[core] only use feature test macros on linux
[fetch] use signed integers for liFetchDatabase refcount