COMMON: Improve deprecated macros for Linux

Improving the deprecated macros for Linux to take into account the
support for additional messages in clang and GCC versions greater 4.5,
as well as ensuring we don't try and add the attributes when building
with ICC.

Signed-off by: Damian Maguire <dmaguire@nyx.com>