Don't define __attribute__(hot) on compilers that don't support it

It's apparently a GCC-ism only supported in 4.3.0 and higher, this patch checks for it avoiding a compilation warning which happens otherwise.