add support for older compiler versions