Move ident.h macros into build.h

Add macros into build.h to disable deprecated declarations warnings

Disable deprecated declarations for __APPLE__ in all files that use OpenSSL (fixes OpenSSL build warnings)