Add compatibility for different compilers.