configure: check if the compiler supports the attribute __alloc_size__

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
Rename the attribute's macros by adding a heading and trailing '_'

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>