Fix compatibility with gcc compiler