Use gnu_printf format attribute to minimise MinGW warnings