Fix to work with gcc