Fixed warnings with gcc 4.8