Only mark hot functions on compilers that support it.